<template>
  <div class="header">
      <div class="header_img">
          <img src="../assets/top.jpg" alt="主页图">
      </div>
      <div class="warp_nav">
        <div class="header_nav">
            <el-row :gutter="24">
                <el-col :span="4"><div class="grid-content">
                    <router-link to="/" exact>主页</router-link>
                </div></el-col>
                <el-col :span="4"><div class="grid-content">
                    <router-link  to="/recommend">每日推荐</router-link>
                </div></el-col>
                <el-col :span="4"><div class="grid-content">
                    <router-link to="/sharing">资源分享</router-link>
                </div></el-col>
                <el-col :span="4"><div class="grid-content">
                    <router-link  to="/information">优质博文</router-link>
                </div></el-col>
                <el-col :span="4"><div class="grid-content">
                    <router-link  to="/about">关于我</router-link>
                </div></el-col>
                <el-col :span="4">
                    <div class="grid-content">
                        <router-link to="/contribute">留言反馈</router-link>
                    </div>
                </el-col>
            </el-row>
        </div>
      </div>
    
  </div>
</template>

<script>
export default {

}
</script>

<style>
.header_img{
    height: 180px;
}
.header_img > img{
    width: 100%;
    height: 100%;
}
.warp_nav{
    background-color: #aeccf8ea;
}
.header_nav{
    width: 100%;
}
.header_nav a {
    padding: 18.5px 30px;
    cursor: pointer;
    font-weight: 500;
    color: #171d24;
    font-size: 18px;
}
.header_nav a.router-link-active {
    color: #f5f5f5;
    font-size: 20px;
    background-color: #d49071;
    border-radius: 6px;
}
.header_nav a:hover{
    background-color: #d49071;
    border-radius: 6px;
}
.el-col {
    border-radius: 4px;
  }
.grid-content {
    border-radius: 4px;
    height: 60px;
    line-height: 60px;
  }
  @media screen and (min-width: 1250px) {
      .header_nav{
          width: 80%;
          margin: 0 auto;
      }
  }
</style>